import {http} from "@/utils/index.jsx";


function getOneMaterialByIdAPI(id){
    return http({
        url:`/material/${id}`,
        method:'GET'
    })
}

function getAllMaterialByPageAPI(current,pageSize){
    return http({
        url:'/material/getAllByPage',
        method:'GET',
        params:{
            current:current,
            pageSize:pageSize
        }
    })
}

function getTotalMaterialAPI(){
    return http({
        url:'/material/getAllMaterialTerms',
        method:"get",
    })
}


export {getOneMaterialByIdAPI,getAllMaterialByPageAPI,getTotalMaterialAPI}